package cn.sdpjw.dao;

import cn.sdpjw.entity.TraderCorpMember;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Set;

/**
 * @Auther: liuyuebai
 * @Date: 2024/1/19 08:38
 * @Description:
 */
public interface TraderCorpMemberMapper extends BaseMapper<TraderCorpMember> {

    /**
     * 查询指定邀请码是否存在
     * @param inviteCodes 指定邀请码
     * @return 存在的邀请码
     */
    Set<String> selectExistInviteCode(@Param("inviteCodes") Set<String> inviteCodes);

    List<TraderCorpMember> listWithoutInviteCode();
}
